package com.qf.service.impl;

import com.qf.dao.AddressDao;
import com.qf.dao.impl.AddressDaoimpl;
import com.qf.domain.Address;
import com.qf.service.AddressService;

import java.util.List;

public class AddressServiceimpl implements AddressService {
    private AddressDao addressDao=new AddressDaoimpl();
    @Override
    public List<Address> selectUserAddress(Integer id) {
        List<Address> addresses=addressDao.selectUserAddress(id);
        return addresses;
    }

    @Override
    public void setAddribute(Address address) {
        addressDao.insertAddribute(address);
    }

    @Override
    public void deleteAddressUserone(Integer id) {
        addressDao.deleteAddressUserone(id);
    }

    @Override
    public void updateUserAddressone(Address address) {
        addressDao.updateUserAddressone(address);
    }

    @Override
    public void updatelevel(Integer id,Integer uid) {
        addressDao.updatelevel(id,uid);
    }

    @Override
    public Object selectUserAddresslevel(Integer id) {
        return addressDao.selectUserAddresslevel(id);
    }

    @Override
        public Address selectUserAddressOne(Integer aid) {

        return addressDao.selectUserAddressOne(aid);
    }


}
